<div class="rescueDrill">
  <nz-table #nzTable [nzDataSource]="list" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false" (nzDataChange)="displayDataChange($event)">
    <thead nz-thead>
      <tr>
        <th nz-th>
          <span>救援演练时间</span>
        </th>
        <th nz-th>
          <span>演练梯号</span>
        </th>
        <th nz-th>
          <span>维保单位</span>
        </th>
        <th nz-th>
          <span>维保签名</span>
        </th>
        <th nz-th>
          <span>演练负责人签名</span>
        </th>
        <th nz-th>
          <span>演练类型</span>
        </th>
        <th nz-th>
          <span>演练图片</span>
        </th>
        <th nz-th>
          <span>导出</span>
        </th>
      </tr>
    </thead>
    <tbody nz-tbody>
      <tr nz-tbody-tr *ngFor="let data of list">

        <td nz-td>{{data.drillDate | dateFormat}}</td>
        <td nz-td>{{data.community}}小区{{data.building}}栋{{data.unit}}单元{{data.ladderNumber}}#电梯</td>
        <td nz-td>{{data.maintenancePartyName}}</td>
        <td nz-td>
          <img *ngIf="data.maintSing1" src="{{data.maintSing1}}" width="120px" height="40px" />
        </td>
        <td nz-td>
          <img *ngIf="data.safeUserSign" src="{{data.safeUserSign}}" width="120px" height="40px" />
        </td>
        <td nz-td>{{data.drillType | constantTransfer:drillTypes}}</td>
        <td nz-td>
          <img (click)="showLargeImage(titlepic,contentpic,footerpic,pic)" *ngFor="let pic of getPics(data.picUrl)" src="{{conf.IP+conf.API.getUpload+pic}}"
            width="30px" height="30px" />
        </td>
        <td nz-td>
          <span>
            <button nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="export(data.id)">导出</button>
          </span>
        </td>

      </tr>
    </tbody>
  </nz-table>
  <nz-pagination [nzPageIndex]="rescueDrill.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger (nzPageSizeChange)="nzPageSizeChange($event)"
    (nzPageIndexChange)="nzPageIndexChange($event)" (nzPageIndexClickChange)="nzPageIndexClickChange($event)" [nzPageSize]="rescueDrill.pageSize"></nz-pagination>

</div>

<ng-template #titlepic>
  <span>图片</span>
</ng-template>
<ng-template #contentpic>
  <enlarge-pic [inValue]="picList" (outPut)="addOutPut($event)"></enlarge-pic>
</ng-template>
<ng-template #footerpic>
  <div>
  </div>
</ng-template>
